/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.yonsei.iwb.ts.model;

/**
 *
 * @author dk
 */
public class ObjectNode {
    
    private String value;
    private String type;
    
    public ObjectNode(String value, String type){
        this.value = value;
        this.type = type;
    }
    
    @Override
    public String toString(){
        return "["+this.value+", type : " + this.type+"]";
    }
    
    public String getValue(){
        return this.value;
    }
    
    public String getType(){
        return this.type;
    }
    
    public boolean equals(ObjectNode on){
        if(on.getValue().equals(this.value)){
            if(on.getType().equals(this.type)){
                return true;
            }
        }        
        return false;
    }
    
}
